翻訳と辞書
Words near each other
・ Doublet Peak
・ Doublet Pool
・ Doublet state
・ Doubletake
・ Doubletalk
・ DoubleTap Games
・ DoubleTap pistol
・ DoubleThink
・ Doublethink
・ Doublethink Theatre
・ Doubletime
・ Doubletime (gene)
・ DoubleToasted.com
・ Double-Edged Sword (30 Rock)
・ Double-elimination tournament
Double-ended priority queue
・ Double-ended queue
・ Double-ended synchronization
・ Double-entry bookkeeping system
・ Double-exchange mechanism
・ Double-eyed fig parrot
・ Double-fault
・ Double-flowered
・ Double-Function Form
・ Double-Gauss lens
・ Double-H Boots
・ Double-headed
・ Double-headed eagle
・ Double-headed eagles derby
・ Double-headed serpent


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Double-ended priority queue : ウィキペディア英語版
Double-ended priority queue

In computer science, a double-ended priority queue (DEPQ)〔(Data Structures, Algorithms, & Applications in Java: Double-Ended Priority Queues ), Sartaj Sahni, 1999.〕 or double-ended heap is a data structure similar to a priority queue or heap, but allows for efficient removal of both the maximum and minimum, according to some ordering on the ''keys'' (items) stored in the structure. Every element in a DEPQ has a priority or value. In a DEPQ, it is possible to remove the elements in both ascending as well as descending order.
== Operations ==
A double-ended priority queue features the follow operations:
;isEmpty(): Checks if DEPQ is empty and returns true if empty.
;size(): Returns the total number of elements present in the DEPQ.
;getMin(): Returns the element having least priority.
;getMax(): Returns the element having highest priority.
;put(''x''): Inserts the element ''x'' in the DEPQ.
;removeMin(): Removes an element with minimum priority and returns this element.
;removeMax(): Removes an element with maximum priority and returns this element.
If an operation is to be performed on two elements having the same priority, then the element inserted first is chosen. Also, the priority of any element can be changed once it has been inserted in the DEPQ.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Double-ended priority queue」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.